package com.example.product.ciao;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;



public class BookActivity extends Activity {
	private Button pub;
	private Button ktv;
	private Button food;
	private Button mine;
	private Button mymessage;
	private Button reback;
	private Button yes;
	private Button no;
	private Spinner style;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.book);
		reback = (Button) this.findViewById(R.id.btn_arrow);
		yes = (Button) this.findViewById(R.id.yes_btn);
		no = (Button) this.findViewById(R.id.no_btn);
		pub = (Button) this.findViewById(R.id.pub);
		ktv = (Button) this.findViewById(R.id.ktv);
		food = (Button) this.findViewById(R.id.food);
		mine = (Button) this.findViewById(R.id.mine);
		mymessage = (Button) this.findViewById(R.id.btn_main_message);
		style = (Spinner) this.findViewById(R.id.spinner_style);

		String[] mItems = this.getResources().getStringArray(R.array.stylename);

		ArrayAdapter<String> _Adapter = new ArrayAdapter<String>(this,
				android.R.layout.simple_spinner_item, mItems);

		style.setAdapter(_Adapter);

		pub.setOnClickListener(new View.OnClickListener() {
			public void onClick(View paramAnonymousView) {

				
				Intent localIntent1 = new Intent(BookActivity.this, PubActivity.class);
				BookActivity.this.startActivity(localIntent1);
				//BookActivity.this.finish();
			}
		});
		ktv.setOnClickListener(new View.OnClickListener() {
			public void onClick(View paramAnonymousView) {

				
				Intent localIntent1 = new Intent(BookActivity.this, KtvActivity.class);
				BookActivity.this.startActivity(localIntent1);
				//BookActivity.this.finish();
			}
		});
		food.setOnClickListener(new View.OnClickListener() {
			public void onClick(View paramAnonymousView) {

			
				
				Intent localIntent1 = new Intent(BookActivity.this, FoodActivity.class);
				BookActivity.this.startActivity(localIntent1);
				//BookActivity.this.finish();
			}
		});
		mine.setOnClickListener(new View.OnClickListener() {
			public void onClick(View paramAnonymousView) {

			
				
				Intent localIntent1 = new Intent(BookActivity.this, LoginActivity.class);
				BookActivity.this.startActivity(localIntent1);
				//BookActivity.this.finish();
			}
		});
		mymessage.setOnClickListener(new View.OnClickListener() {
			public void onClick(View paramAnonymousView) {

				

				Intent localIntent1 = new Intent(BookActivity.this, MyMessageActivity.class);
				BookActivity.this.startActivity(localIntent1);
				//BookActivity.this.finish();
			}
		});
		reback.setOnClickListener(new View.OnClickListener() {
			public void onClick(View paramAnonymousView) {

				

				Intent localIntent1 = new Intent(BookActivity.this, TopActivity.class);
				BookActivity.this.startActivity(localIntent1);
				//BookActivity.this.finish();
			}
		});
		yes.setOnClickListener(new View.OnClickListener() {
			public void onClick(View paramAnonymousView) {

			
				

				Intent localIntent1 = new Intent(BookActivity.this, OrderDetailActivity.class);
				BookActivity.this.startActivity(localIntent1);
				//BookActivity.this.finish();
			}
		});
		no.setOnClickListener(new View.OnClickListener() {
			public void onClick(View paramAnonymousView) {

			
				
				Intent localIntent1 = new Intent(BookActivity.this, OrderListActivity.class);
				BookActivity.this.startActivity(localIntent1);
				//BookActivity.this.finish();
			}
		});
	}

}
